import IScript from "../IScript";
import {${nowMsgDefinition.package_name}} from "../../types/msg"

export  class ${nowMsgDefinition.name}Script implements IScript {

    private static  _instance = new ${nowMsgDefinition.name}Script()
    public static get instance(){
        return ${nowMsgDefinition.name}Script._instance;
    }
    private constructor(){}

    excute(obj: any) {
        this.handle(obj )
    }

    handle(msg: ${nowMsgDefinition.package_name}.${nowMsgDefinition.name}) {
<#--        console.log("消息处理器处理消息：",msg);-->
    }
}

export default ${nowMsgDefinition.name}Script.instance
